---
layout: default
title: 分类
header: Posts By Category
---

<div class="container docs-container">
  <div class="row">
    <div class="col-md-9" role="main">
      <div class="panel docs-content">
        <div class="wrapper">
          <div class="home">
            {% for category in site.categories %}
            <h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
            <ul>
              {% assign pages_list = category[1] %}
              {% for node in pages_list %}
              {% if node.title != null %}
              {% if group == null or group == node.group %}
              {% if page.url == node.url %}
              <ol class="breadcrumb">
                <li class="active"><a href="{{ node.url | prepend: site.baseurl }}" class="active">{{ node.title }}</a>
                </li>
                <li style="float:right;"><span>{{ node.date | date: "%F" }}</span></li>
              </ol>
              {% else %}
              <ol class="breadcrumb">
                <li><a href="{{ node.url | prepend: site.baseurl }}">{{ node.title }}</a></li>
                <li style="float:right;"><span>{{ node.date | date: "%F" }}</span></li>
              </ol>
              {% endif %}
              {% endif %}
              {% endif %}
              {% endfor %}
              {% assign pages_list = nil %}
              {% assign group = nil %}
            </ul>
            {% endfor %}
          </div>
        </div>
      </div>
    </div>
    <div class="col-md-3">
      <div class="sidebar hidden-print" role="complementary">
        {%- include side.html -%}
      </div>
    </div>
  </div>
</div>
